<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <meta name="layout" content="main" />
    <title>Application</title>
  </head>
  <body>
      <div class="body">
          <div class="undernav"></div>
    <h1>Application</h1>
   <g:if test="${flash.message}"><div class="message">${flash.message}</div></g:if>
          
     <g:hasErrors bean="${employeeInstance}">
            <div class="errors"> <g:renderErrors bean="${employeeInstance}" as="list" /> </div>
           </g:hasErrors>

     <!--hmmm-->
             <g:form action="checkCivicNumber" method="post" > <!--what does-->
                <div class="dialog">
                    <table>
                        <tbody>

                          <!--civil civic number test with button-->
                          <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="employeeId">
                                      ${Inter.printOut('Employee Id:',session.language)}
                                    </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:employeeInstance,field:'employeeId','errors')}">
                                    <input type="text" id="employeeId" maxlength="6" size="6" name="employeeId" title="${Inter.printOut('employee_employeeId_hover',session.language)}" value="${fieldValue(bean:employeeInstance,field:'employeeId')}" />
                                </td>
                            </tr>
                         </tbody>
                    </table>
                </div>
                      <!--check if civic number exists or not -->
                    <div class="buttons">
                        <span class="button"><input class="checkCivicNumber" type="submit" value="Ok" /></span> <!--if new employee else annat-->
                    </div>
                    </g:form>
                     

                <!--hmm-->
      </div>
  </body>
</html>

